﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Forum/Views/Shared/ForumModerator.Master" Inherits="System.Web.Mvc.ViewPage<SacNetUG.Areas.Forum.Models.Post>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h4>Edit a selected Post</h4>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.PostID) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.PostID) %>
                <%: Html.ValidationMessageFor(model => model.PostID) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.InitialPostSubject) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.InitialPostSubject) %>
                <%: Html.ValidationMessageFor(model => model.InitialPostSubject) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.PostorHandle) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.PostorHandle) %>
                <%: Html.ValidationMessageFor(model => model.PostorHandle) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.DatePosted) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.DatePosted) %>
                <%: Html.ValidationMessageFor(model => model.DatePosted) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Flagged) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Flagged) %>
                <%: Html.ValidationMessageFor(model => model.Flagged) %>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.FlaggedThenApproved) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.FlaggedThenApproved)%>
                <%: Html.ValidationMessageFor(model => model.FlaggedThenApproved)%>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.ThePost) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ThePost) %>
                <%: Html.ValidationMessageFor(model => model.ThePost) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.IsTheInitialPost) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.IsTheInitialPost) %>
                <%: Html.ValidationMessageFor(model => model.IsTheInitialPost) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.PostedTo) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.PostedTo) %>
                <%: Html.ValidationMessageFor(model => model.PostedTo) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.NumberOfPosts) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.NumberOfPosts) %>
                <%: Html.ValidationMessageFor(model => model.NumberOfPosts) %>
            </div>
            
            <p>
                <input type="submit" class="submitbutton" id="submit" name="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

</asp:Content>